Make testtreeview handle RTL environment variable for testing
authorKristian Rietveld <kris@gtk.org>
Wed, 15 Dec 2010 20:36:47 +0000 (21:36 +0100)
committerKristian Rietveld <kris@gtk.org>
Wed, 15 Dec 2010 20:36:47 +0000 (21:36 +0100)
tests/testtreeview.c

index c252ebfc8c5b70b380c0591b35430e53bf312c13..80efc90fb8b92ba6130ba7b6428f8f267fa126c9 100644 (file)
@@ -709,6 +709,9 @@ main (int    argc,
   
   gtk_init (&argc, &argv);
 
+  if (g_getenv ("RTL"))
+    gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
   our_pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) book_closed_xpm);  
   
 #if 0